#! /usr/bin/ruby -w
# coding: utf-8
# author: Ulric Qin
# mail: qinxiaohui@xiaomi.com
require 'fetcher'
require 'fileutils'
require 'global'

class MainPack

  attr_reader :global

  def initialize(global)
    @global = global
  end

  def compile
    Fetcher.install_nginx(global)
    Fetcher.install_php(global)
    FileUtils.cp(File.join(global.build_pack_dir, 'bin', 'boot.sh'), global.build_path)
  end

end